﻿namespace MyCompany.MyProject.WebApi.ModelDto.UserDto;

/// <summary>
/// 用户视图Dto
/// </summary>
public class UserVo
{
    /// <summary>
    /// id
    /// </summary>
    public long Id { get; set; }
    /// <summary>
    /// 登录名
    /// </summary>
    public string LoginName { get; set; }
    /// <summary>
    /// 是否删除
    /// </summary>
    public bool IsDeleted { get; set; } = false;
    /// <summary>
    /// 是否启用
    /// </summary>
    public bool Enable { get; set; } = false;
    /// <summary>
    /// 登录密码
    /// </summary>
    public string LoginPWD { get; set; }
    /// <summary>
    /// 真实名称
    /// </summary>
    public string RealName { get; set; }
    /// <summary>
    /// 状态
    /// </summary>
    public int? Status { get; set; }
    /// <summary>
    /// 部门id
    /// </summary>
    public long? DepartmentId { get; set; }
    /// <summary>
    /// 备注
    /// </summary>
    public string? Remark { get; set; }
    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreateTime { get; set; } = DateTime.Now;
    /// <summary>
    /// 更新时间
    /// </summary>
    public DateTime UpdateTime { get; set; } = DateTime.Now;
    /// <summary>
    /// 最近错误时间
    /// </summary>
    public DateTime LastErrTime { get; set; } = DateTime.Now;
    /// <summary>
    /// 错误次数
    /// </summary>
    public int ErrorCount { get; set; }
    /// <summary>
    /// 名称
    /// </summary>
    public string? Name { get; set; }
    /// <summary>
    /// 性别 0 未知 1 男 2 女
    /// </summary>
    public int sex { get; set; } = 0;
    /// <summary>
    /// 年龄
    /// </summary>
    public int Age { get; set; }
    /// <summary>
    /// 生日
    /// </summary>
    public DateTime Birth { get; set; } = DateTime.Now;
    /// <summary>
    /// 地址
    /// </summary>
    public string? Address { get; set; }
    /// <summary>
    /// 是否删除
    /// </summary>
    public bool IsDelete { get; set; }
    /// <summary>
    /// 角色名称列表
    /// </summary>
    public List<string>? RoleNames { get; set; }
    /// <summary>
    /// 部门id列表
    /// </summary>
    public List<long> Dids { get; set; }
    /// <summary>
    /// 部门名称
    /// </summary>
    public string? DepartmentName { get; set; }
    /// <summary>
    /// 租户id
    /// </summary>
    public long TenantId { get; set; }
    /// <summary>
    /// 角色id列表
    /// </summary>
    public List<long>? RIDs { get; set; }

    /// <summary>
    /// 关键业务修改时间
    /// </summary>
    public DateTime CriticalModifyTime { get; set; } = DateTime.Now;
}
